package com.arron.ssm.dao;

import com.arron.ssm.entity.Dept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface DeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer id);

    List<Dept> selectList();

    int updateByPrimaryKeySelective(@Param("dept") Dept dept, @Param("id") Long id);

    int updateByPrimaryKey(@Param("dept") Dept dept, @Param("id") Integer id);

    void deleteBatchByIds(@Param("ids") ArrayList<Long> ids);

}